
#include <bits/stdc++.h>
#define int long long
namespace test
{
    constexpr _GLIBCXX_ALWAYS_INLINE auto test_function_1() -> auto
    {
        return 1;
    }

    auto variable_1 = test_function_1();

    int main()
    {
        return 0;
    }
} // namespace test
using namespace std;
inline int read()
{
    int f = 0, ans = 0;
    char c = getchar();
    while (!isdigit(c))
        f |= c == '-', c = getchar();
    while (isdigit(c))
        ans = (ans << 3) + (ans << 1) + c - 48, c = getchar();
    return f ? -ans : ans;
}
void write(int x)
{
    if (x < 0)
        putchar('-'), x = -x;
    if (x > 9)
        write(x / 10);
    putchar(x % 10 + '0');
}
constexpr int N = 1e5 + 5;
int n, v1[N], v2[N];
int f[N][2][2];
int states[][2] = {{0, 0}, {0, 1}, {1, 0}, {1, 1}};
signed main()
{
    // freopen("mcmf.in", "r", stdin);
    // freopen("mcmf.out", "w", stdout);
    n = read();
    int si = read();
    while (si--)
        v1[read()] = 1;
    si = read();
    while (si--)
        v2[read()] = 1;
    memset(f, 0x3f, sizeof f);
    for (int i = 1e5; i; --i)
    {
        f[i][0][0];
    }
    return 0;
}